function result=bciFind(chanVec,chanToFind)
% bciFind(chanVec,chanToFind)
% returns indices of multiple numbers chanToFind to find in a vector
% chanVec (use row vectors only)
% input arguments must be sorted

if size(chanVec,1)>1 || ndims(chanVec)>2||size(chanToFind,1)>1 || ndims(chanToFind)>2,
    error('Check dimensions.');
end

chanMat = chanVec'*ones(1,size(chanToFind,2));
findMat = ones(size(chanVec,2),1)*chanToFind;

result=find(sum(chanMat==findMat,2))';